package com.api.gbhg.liuwenbo.test;

import cn.hutool.core.util.StrUtil;
import com.api.gbhg.liuwenbo.pojo.Info;
import com.api.gbhg.liuwenbo.utils.FormatUtil;
import com.google.common.base.Joiner;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class test1 {

    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        list.add(123);
        list.add(456);
        list.add(789);
        System.out.println(list);
        String join = Joiner.on(",").join((Iterable<?>) list);
        System.out.println(join);
        System.out.println(join.length());
        String a = "2";
        System.out.println(a.length());

        String str = "asdas_dt1";
        System.out.println(str.substring(str.length()-3));

        String abc = "abc";
        System.out.println(abc.contains("abc"));
        Info[] info = new Info[3];
        info[0] = new Info();
        info[1] = new Info();
        info[0].setId("1");
        info[1].setId("2");
        System.out.println(info[2]);
    }
}
